﻿using System;
using System.Collections.Generic;
using System.Linq;
using Entities.Entities;
using MongoDB.Bson;
using MongoDB.Driver;

namespace Entities.Operate
{
    public class Region : Interface.IRegion
    {
        private Data.IRepository<Entities.Region> repository = new Repository<Entities.Region>().GetRepository;
        public void DeleteRegion(ObjectId id)
        {
            repository.DeleteById(id);
        }

        public IEnumerable<Entities.Region> Find(QueryDocument args)
        {
            throw new NotImplementedException();
        }

        public IEnumerable<Entities.Region> GetRegions()
        {
            throw new NotImplementedException();
        }

        public void InsertRegion(Entities.Region args)
        {
            repository.Insert(args);
        }

        public void UpdateRegion(Entities.Region args)
        {
            repository.Update(args);
        }
    }
}
